Don't free description twice when prefer_shortnames. From Ron.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 27 May 2003 15:22:21 +0000 (15:22 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 27 May 2003 15:22:21 +0000 (15:22 +0000)
gpsbabel/csv_util.c

index 9d2f7f53051ea5e88239cdfb01493b087cb3a686..2c2cba10fd661f941b17e6160da4a12960c9e869 100644 (file)
@@ -782,7 +782,7 @@ xcsv_waypt_pr(const waypoint *wpt)
     if (shortname)
         xfree(shortname);
 
-    if (description)
+    if (description && description != shortname)
         xfree(description);
 
     index++;